import request from '@/utils/request'

// 查询文章大纲列表
export function listOutline(query) {
  return request({
    url: '/article/outline/list',
    method: 'get',
    params: query
  })
}

// 查询文章大纲详细
export function getOutline(id) {
  return request({
    url: '/article/outline/' + id,
    method: 'get'
  })
}

// 新增文章大纲
export function addOutline(data) {
  return request({
    url: '/article/outline',
    method: 'post',
    data: data
  })
}

// 修改文章大纲
export function updateOutline(data) {
  return request({
    url: '/article/outline',
    method: 'put',
    data: data
  })
}

// 删除文章大纲
export function delOutline(id) {
  return request({
    url: '/article/outline/' + id,
    method: 'delete'
  })
}
